package org.ifilm.service;

import java.util.List;

import org.ifilm.model.Project;

/**
 * Project Service interface
 * 
 * @author Mustafa Genc
 *
 */
public interface ProjectService {
	/**
	 * 
	 * @param project
	 * 		project to persist
	 * @return
	 */
	public Project createProject(Project project);
	
	/**
	 * 
	 * @param id
	 * 		project id
	 * @return
	 * 		returns the associted project
	 */
	public Project getProject(Long id);
	
	/**
	 * 
	 * @param page
	 * 		page number to use for pagination
	 * @param max
	 * 		max number per page to use for pagination
	 * @return
	 * 		returns list of projects
	 */
	public List<Project> listProjects(Integer page, Integer max);
}
